package io.renren.modules.psorder.service;

import io.renren.modules.psorder.entity.PsOrderEntity;

import java.util.List;
import java.util.Map;

/**
 * 配送订单表
 * 
 * @author wangdajiang
 * @email 2750757088@qq.com
 * @date 2017-12-02 17:22:15
 */
public interface PsOrderService {
	
	PsOrderEntity queryObject(Long id);

	List<PsOrderEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(PsOrderEntity psOrder);
	
	void update(PsOrderEntity psOrder);
	
	void delete(Long id);
	
	void deleteBatch(Long[] ids);

	PsOrderEntity queryByOrderNum(String orderNum);

	List<PsOrderEntity> userQueryCompletedPsOrder(Long userId);

	List<PsOrderEntity> userQueryOnGoingPsOrder(Long userId);

	List<PsOrderEntity> userQueryCancelPsOrder(Long userId);

	List<PsOrderEntity> driverQueryOnGoingPsOrder(Long driverId);

	List<PsOrderEntity> driverQueryCompletedPsOrder(Long driverId);

	List<PsOrderEntity> driverQueryCancelPsOrder(Long driverId);

	/**
	 *  查询司机的推送记录
	 * @param driverUser 司机用户名
	 * @return
	 */
	List<PsOrderEntity> driverQueryPushRecords(String driverUser);

	void remindAllAppointPsOrder();

	//订单导出
	List<PsOrderEntity> queryListExcel(Map<String, Object> map);



}
